import 'package:TapTap/config/app_colors.dart';
import 'package:TapTap/entity/comment_entity.dart';
import 'package:TapTap/entity/user_info.dart';
import 'package:TapTap/pages/index/home/comment_page/comment_detail.dart';
import 'package:TapTap/pages/index/home/game_description/game_detail.dart';
import 'package:TapTap/pages/index/user/change_info.dart';
import 'package:TapTap/service/comment_service.dart';
import 'package:TapTap/util/DrawUtil.dart';
import 'package:TapTap/util/GlobalData.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class TextPage extends StatefulWidget {
  const TextPage({Key? key, required this.content, required this.title})
      : super(key: key);
  final String title;
  final String content;
  @override
  TextPageState createState() => TextPageState();
}

class TextPageState extends State<TextPage> with TickerProviderStateMixin {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
          centerTitle: true,
        ),
        body: ListView(
          children: [
            SizedBox(
              height: 5,
            ),
            Padding(
                padding: const EdgeInsets.all(10.0),
                child: Text(widget.content))
          ],
        ));
  }
}
